@extends('app')
@section('content')
    <script src="{{ asset('web/js/jquery.lightbox.js') }}"></script>
    <link href="{{ asset('web/css/lightbox.css') }}" rel="stylesheet" type="text/css" />
    <div class="page">
        <div class="header">“水榭香堤”第一届业主委员会投票系统</div>
        <div class="tpal"><a href="{{ url('votes/create') }}"><img src="{{ asset('web/images/tp.jpg') }}" width="100%" /></a></div>
        <div class="scsm">请上传本人真实照片.姓名信息，参与竞选！</div>
        <div class="phbbt">主任候选人投票排行榜</div>
        <div class="phb">
            @include('_vote')
        </div>
    </div>
    @if (count($errors) > 0)
        <script type="text/javascript">
            var message = '';
            @foreach ($errors->all() as $error)
            message = message + "{{ $error }}";
            @endforeach
            alert(message);
        </script>
    @endif
    <script type="text/javascript">
        $("a.show-pic").lightbox();
    </script>
@stop